package cn.dida.service.impl;

import cn.dida.dao.ProductDao;
import cn.dida.dao.StasticDao;
import cn.dida.model.stastic.ProductScanCountByDate;
import cn.dida.service.StasticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Map;

/**
 * 扫码统计 业务层接口实现类
 * @author weiwei
 */
@Service
public class StasticServiceImpl implements StasticService {
    @Autowired
    private StasticDao stasticDao;
    @Deprecated
    @Autowired
    private ProductDao productDao;

    @Override
    public Map<Integer, ArrayList<ProductScanCountByDate>> stasticProductScanCountByDate(Integer companyId, String keyword, Long timeLimitStart, Long timeLimitEnd, int page) {
        return stasticDao.stasticProductScanCountByDate(companyId, keyword, timeLimitStart, timeLimitEnd, page);
    }
}
